

package com.hazelcast.internal.util.phonehome;

import com.hazelcast.instance.impl.Node;

import static com.hazelcast.internal.util.phonehome.PhoneHomeMetrics.V_CPU_COUNT;

class VMMetricsProvider implements MetricsProvider {

    @Override
    public void provideMetrics(Node node, MetricsCollectionContext context) {
        context.collect(V_CPU_COUNT, Runtime.getRuntime().availableProcessors());
    }
}
